package com.xxxx.portal.vo;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

public class UserVo implements Serializable {

    private static final long serialVersionUID = 7090083368409640490L;


    @NotBlank(message = "手机号不可以为空")
    @Pattern(regexp = "^1[3|4|5|7|8][0-9]{9}$",message = "手机号不符合规范")
    private String email;

    @NotBlank(message = "用户名不可以为空")
    private String userName;

    @NotBlank(message = "用户密码不可以为空")
    private String password;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
